package com.example.springboot_redis.service;

import com.example.springboot_redis.Dao.Po.StudentPo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface RedisServiceI {
    /**
     * @param key
     * @param value
     * @return
     */
    public boolean set(String key, Object value);

    /**
     * @param key
     * @return
     */
    public Object get(String key);

    /**
     * @param key
     * @return
     */
    public boolean delete(String key);

    /**
     * @param key
     * @return
     */
    public boolean exists(String key);
    public List<StudentPo> getAllHash();
}
